package com.ruoyi.equipment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备日志对象 t_user_log
 * 
 * @author ruoyi
 * @date 2021-12-27
 */
public class TUserLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Integer userId;

    /** 部门id */
    private Integer deptId;

    private Integer userLogId;

    public Integer getUserLogId() {
        return userLogId;
    }

    public void setUserLogId(Integer userLogId) {
        this.userLogId = userLogId;
    }
    @Excel(name = "备注")
    private String remark;

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    /** 工具用途 */
    @Excel(name = "工具用途")
    private String toolUse;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    @Excel(name = "图片地址")
    private String imgUrl;

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    /** 设备id */
    private String equipmentId;

    /** 仓匣号 */
    @Excel(name = "仓匣号")
    private Long drawerNo;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equipmentName;

    /** 0归还,1未归还 */
    @Excel(name = "0归还,1未归还")
    private Integer returnStu;

    @Excels({
            @Excel(name = "部门名称", targetAttr = "deptName", type = Excel.Type.EXPORT),
            @Excel(name = "部门负责人", targetAttr = "leader", type = Excel.Type.EXPORT)
    })
    private SysDept sysDept;

    @Excels({@Excel(name = "用户姓名",targetAttr = "nickName",type =Excel.Type.EXPORT )})
    private SysUser sysUser;

    @Excel(name = "仓匣是否归还到设备上",readConverterExp = "0=归还,1=未归还")
    private Integer drawerStu;

    private String drawerId;

    public String getDrawerId() {
        return drawerId;
    }

    public void setDrawerId(String drawerId) {
        this.drawerId = drawerId;
    }

    public Integer getDrawerStu() {
        return drawerStu;
    }

    public void setDrawerStu(Integer drawerStu) {
        this.drawerStu = drawerStu;
    }

    public SysDept getSysDept() {
        return sysDept;
    }

    public void setSysDept(SysDept sysDept) {
        this.sysDept = sysDept;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public void setUserId(Integer userId)
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setDeptId(Integer deptId) 
    {
        this.deptId = deptId;
    }

    public Integer getDeptId() 
    {
        return deptId;
    }
    public void setUseTime(Date useTime) 
    {
        this.useTime = useTime;
    }

    public Date getUseTime() 
    {
        return useTime;
    }
    public void setToolUse(String toolUse) 
    {
        this.toolUse = toolUse;
    }

    public String getToolUse() 
    {
        return toolUse;
    }
    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    public String getProjectName() 
    {
        return projectName;
    }
    public void setEquipmentId(String equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public String getEquipmentId() 
    {
        return equipmentId;
    }
    public void setDrawerNo(Long drawerNo) 
    {
        this.drawerNo = drawerNo;
    }

    public Long getDrawerNo() 
    {
        return drawerNo;
    }
    public void setEquipmentName(String equipmentName) 
    {
        this.equipmentName = equipmentName;
    }

    public String getEquipmentName() 
    {
        return equipmentName;
    }
    public void setReturnStu(Integer returnStu) 
    {
        this.returnStu = returnStu;
    }

    public Integer getReturnStu() 
    {
        return returnStu;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("deptId", getDeptId())
                .append("useTime", getUseTime())
                .append("toolUse", getToolUse())
                .append("projectName", getProjectName())
                .append("equipmentId", getEquipmentId())
                .append("drawerNo", getDrawerNo())
                .append("equipmentName", getEquipmentName())
                .append("returnStu", getReturnStu())
                .append("userLogId",getUserLogId())
                .append("imgUrl",getImgUrl())
                .append("drawerStu",getDrawerStu())
                .append("drawerId",getDrawerId())
                .toString();
    }
}
